/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-10-16  18:11
 */
public class Test {
    public static void main(String[] args) {
        MyLinkList myLinkList = new MyLinkList();
        myLinkList.addLast(12);
        myLinkList.addLast(23);
        myLinkList.addLast(34);
        myLinkList.addLast(45);
        myLinkList.addLast(56);
        myLinkList.addLast(56);
        myLinkList.display();
        System.out.println("长度：" + myLinkList.size());
        System.out.println("===================");
        myLinkList.addFirst(99);
        myLinkList.display();
        System.out.println("===================");
        myLinkList.addLast(88);
        myLinkList.display();
        System.out.println("===================");
        myLinkList.addIndex(2,77);
        myLinkList.display();
        System.out.println("===================");
        myLinkList.remove(12);
        myLinkList.display();
        System.out.println("===================");
        myLinkList.removeAllKey(56);
        myLinkList.display();
        System.out.println("===================");
        myLinkList.clear();
        myLinkList.display();
    }
}
